home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000386_bonomi@host122.r-bonomi.com_Sun Sep 5 15:22:54 2004.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.linkpendium.com!news.linkpendium.com!news.moat.net!feeder2.on.meganewsservers.com!meganewsservers.com!reader1.on.meganewsservers.com!reader1.on.meganewsservers.com!not-for-mail
  2. ath: nntpswitch.com
  3. Newsgroups: comp.protocols.kermit.misc
  4. References: <ch4m71$koi$2@blue.rahul.net> <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>
  5. Organization: Robert Bonomi Consulting
  6. Subject: Re: GPS NMEA time reader
  7. X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
  8. From: bonomi@host122.r-bonomi.com (Robert Bonomi)
  9. Originator: bonomi@host122.r-bonomi.com (Robert Bonomi)
  10. Message-ID: <78889$413b33a0$44a75e7a$24367@msgid.meganewsservers.com>
  11. Date: Sun, 05 Sep 2004 15:41:20 +0000
  12. Lines: 49
  13. NNTP-Posting-Host: 216.251.47.166
  14. X-Trace: 1094398880 reader1.on.meganewsservers.com 1314 216.251.47.166:41147
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15157
  16.  
  17. In article <slrncjbtvl.iqr.fdc@sesame.cc.columbia.edu>,
  18. Frank da Cruz  <fdc@columbia.edu> wrote:
  19. >On 2004-09-01, dold@GPSXNMEAXt.usenet.us.com <dold@GPSXNMEAXt.usenet.us.com>
  20. >wrote:
  21. >: I have a commodity GPS (Garmin eTrex)
  22. >: This produces NMEA strings at 4800 baud that I can read easily with
  23. >: Kermit95.  
  24. >:
  25. >: A string that starts with $GPRMC contains the date and time in GMT.
  26. >: The strings appear every few seconds, with a granularity of +/-2 seconds.
  27. >:
  28. >: What I want to do is read these with Kermit95 and use them to set the time
  29. >: and date on a Windows PC.  The fact that it is GMT is a little bit of a
  30. >: problem, and I thought someone else might already have done the work for
  31. >: me.
  32. >:
  33. >: If the script also worked on MSDOS and Unix, that would be great.  On Unix,
  34. >: I think the GMT offset is not a big deal, but I don't know what to do on
  35. >: Windows/DOS.
  36. >:
  37. >C-Kermit and K95 include date/time functions that can handle GMT/localtime
  38. >conversion:
  39. >
  40. >  http://www.columbia.edu/kermit/ckermit80.html#x8.13
  41. >
  42. >MS-DOS Kermit, no.  DOS itself (of course) has no knowledge of timezones.
  43. >
  44. >: This is from 010904 September 1, 2004, at 13:40:58 GMT
  45. >: Once satellite lock is found, the position appears
  46. >: $GPRMC,134058,A,3850.1234,N,12230.5678,W,0.0,71.4,010904,15.0,E,A*0D
  47. >:        ------                                     ------
  48. >: Before satellite lock is found, there is no position, and no time.
  49. >: The ",V," indicates that the fix is no good.
  50. >: $GPRMC,,V,,,,,,,010904,15.0,E,N*00
  51. >:
  52. >You didn't say how to decode these, but if a time is in there, Kermit
  53. >string and date/time functions can deal with it.  As to actually setting
  54. >the system time, you'll need to invoke an external program (RUN or RUN START)
  55. >with appropriate command line options and privileges.
  56.  
  57.  
  58. The 'decoding' is obvious.  <grin>
  59. The 2nd field is HHMMSS, the 11th field is DDMMYY
  60. (note: decoding derived from his supplied data, with the plain-text 
  61.        explanation line that precedes it, and his underlining of 
  62.        fields 2 and 11.)
  63.  
  64.  
  65.